/*
 *  Copyright (c) 2023. felord.cn
 *    Licensed under the Apache License, Version 2.0 (the "License");
 *    you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *       https://www.apache.org/licenses/LICENSE-2.0
 *  Website:
 *       https://felord.cn
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */

package cn.felord.domain.meetingroom;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Getter;
import lombok.ToString;

/**
 * The type Coordinate.
 *
 * @author dax
 * @since 2021 /7/12 19:23
 */
@ToString
@Getter
public class Coordinate {
    /**
     * 会议室所在楼宇的纬度
     */
    private final String latitude;
    /**
     * 会议室所在楼宇的经度
     */
    private final String longitude;

    /**
     * Instantiates a new Coordinate.
     *
     * @param latitude  the latitude
     * @param longitude the longitude
     */
    @JsonCreator
    Coordinate(@JsonProperty("latitude") String latitude,
               @JsonProperty("longitude") String longitude) {
        this.latitude = latitude;
        this.longitude = longitude;
    }

}